package com.yonyou.brigade.order_center.dao;

import com.yonyou.brigade.order_center.model.BriTrainTicket;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yonyou.brigade.order_center.model.BriTrainTicketDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xuexmf@yonyou.com
 * @since 2018-09-07
 */
public interface BriTrainTicketMapper extends BaseMapper<BriTrainTicket> {

    int getBriTrainTicketDTOsCount(Map queryParams);

    List<BriTrainTicketDTO> getBriTrainTicketDTOs(Map queryParams);

    List<BriTrainTicket> getBriTrainTicketByOrderNoAndCardNo(@Param("orderNo") String orderNo, @Param("cardNo") String cardNo);

    List<BriTrainTicket> getBriTrainTicketByOrderNo(String orderNo);
}
